package com.axonactive.training.service;

import java.util.ArrayList;
import java.util.List;

import javax.ejb.Stateless;
import javax.inject.Inject;

import com.axonactive.training.dao.BookDao;
import com.axonactive.training.model.Book;

@Stateless
public class BookService {
	@Inject
	BookDao bookDao;

	public List<Book> getBookList() {
		return bookDao.getBookList();
	}
	
	public void addBook(Book book) {
		bookDao.saveBook(book);
	}
}
